package com.zhangyj.db;

import java.sql.SQLException;

public interface IDataModel {

	public boolean next() throws SQLException;

	public int getColumnCount() throws SQLException;

	public String getColumnLabel(int columnIndex) throws SQLException;

	public int getColumnType(int columnIndex) throws SQLException;

	public int getColumnDisplaySize(int columnIndex) throws SQLException;

	public int getPrecision(int columnIndex) throws SQLException;

	public String getString(String columnName) throws SQLException;

	public String getString(int columnIndex) throws SQLException;

	public int getInt(String columnName) throws SQLException;

	public int getInt(int columnIndex) throws SQLException;

	public double getDouble(String columnName) throws SQLException;

	public double getDouble(int columnIndex) throws SQLException;

	public float getFloat(String columnName) throws SQLException;

	public float getFloat(int columnIndex) throws SQLException;

	public void close() throws SQLException;
}
